<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<%@taglib uri="http://www.springframework.org/tags" prefix="spring"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> 
<div width="100%" class="queryReturnContainer">
<form:form method="post" action="../report01/doPreview.do" commandName="formData">	       	    	
	<input type="hidden" name="defStartYear" value="${formData.defStartYear }"/>
	<input type="hidden" name="startYear" value="${formData.startYear }"/>
	<input type="hidden" name="endYear" value="${formData.endYear }"/>
	<input type="hidden" name="reportType" value="${formData.fromReport }"/>
	<input type="submit" value="回上層查詢"/>                    
 </form:form> 
</div>
 
<form:form method="post" action="doPreview.do" commandName="formData">
<table width="800px" class="form">
	<tbody>
    <tr>
        <td width="15%">
			報表類別
        </td>    
        <td width="35%">
			<c:choose>
				<c:when test="${formData.reportType==null || formData.reportType=='DD'}">
		            <input type="radio" name="reportType" value="DD"  checked/> <spring:message code="report02.reportName.DD"/><br />
					<input type="radio" name="reportType" value="DS"/> <spring:message code="report02.reportName.DS"/>
				</c:when>			
				<c:otherwise>
		            <input type="radio" name="reportType" value="DD"/> <spring:message code="report02.reportName.DD"/><br />
					<input type="radio" name="reportType" value="DS" checked/> <spring:message code="report02.reportName.DS"/>
				</c:otherwise>
			</c:choose>           	
        </td>    
        <td width="15%">
			統計時間類別
        </td>    
        <td width="35%">
 
				<c:choose>
					<c:when test="${formData.timeType!=null && formData.timeType=='Year'}">
			            <input type="radio" name="timeType" value="Year"  checked/> <spring:message code="report.timetype.year"/><br />
						<input type="radio" name="timeType" value="Season"/> <spring:message code="report.timetype.season"/><br />
						<input type="radio" name="timeType" value="Month"/> <spring:message code="report.timetype.month"/>
					</c:when>		
					<c:when test="${formData.timeType!=null && formData.timeType=='Season'}">
			            <input type="radio" name="timeType" value="Year" /> <spring:message code="report.timetype.year"/><br />
						<input type="radio" name="timeType" value="Season" checked/> <spring:message code="report.timetype.season"/><br />
						<input type="radio" name="timeType" value="Month"/> <spring:message code="report.timetype.month"/>
					</c:when>							
					<c:otherwise>
			            <input type="radio" name="timeType" value="Year" /> <spring:message code="report.timetype.year"/><br />
						<input type="radio" name="timeType" value="Season" /> <spring:message code="report.timetype.season"/><br />
						<input type="radio" name="timeType" value="Month" checked/> <spring:message code="report.timetype.month"/>
					</c:otherwise>
				</c:choose>  	        	

	                     
        </td>    
    </tr> 
    </tbody>
  	<tfoot>
    <tr>
        <td colspan="4">
	        	<input type="hidden" name="defStartYear" value="${formData.defStartYear }"/>
	        	<input type="hidden" name="startYear" value="${formData.startYear }"/>
	        	<input type="hidden" name="endYear" value="${formData.endYear }"/>
	        	<input type="hidden" name="fromReport" value="${formData.fromReport }"/>
	        	<input type="hidden" name="searchKey" value="${formData.searchKey }"/>
	        	<input type="submit" value="查詢"/>    
        </td>
    </tr>  
    </tfoot>   
</table> 
</form:form>
